package com.yfp.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.client.domain.MarActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
*
* @description 针对表【mar_activity(活动)】的数据库操作Mapper
* @createDate 2024-07-16 16:11:30
* @Entity com.yfp.client.domain.MarActivity
*/

@Mapper
public interface MarActivityMapper extends BaseMapper<MarActivity> {
    MarActivity findById(Long id);

    /**
     * 获取有效的活动
     * @param type
     * @return
     */
    MarActivity findValidByType(@Param("type") Integer type, @Param("cityName") String cityName);

    /**
     * 查询
     * @param marketingId
     * @return
     */
    MarActivity findByMarketingId(Long marketingId);
}




